how to find total number of reflexive and symmetric relations